﻿using System;
using System.Collections.Generic;
using System.Text;
using com.lover.astd.common.logic;

namespace com.lover.astd.common.logicexe
{
    public class CommonExe : ExeBase
    {
        public CommonExe() { _name = ConfigStrings.S_Global; _readable = ConfigStrings.SR_Global; }
        public override void init_data() 
        {
            ServiceFactory.getMiscManager().getServerTime(_proto, _logger);
            ServiceFactory.getMiscManager().getPlayerInfo(_proto, _logger, "", _user);
            ServiceFactory.getMiscManager().getExtraInfo(_proto, _logger, _user);
            ServiceFactory.getMiscManager().getExtraInfo2(_proto, _logger, _user);
            if (!_user.GotLoginReward) ServiceFactory.getMiscManager().getLoginReward(_proto, _logger, _user);
            refreshUi();
        }
        public override long execute()
        {
            init_data();
            return next_halfhour();
        }
    }
}
